package com.szrt.java.day20161230.demo05;

public class Person05 {

	private String name;
	private int age;
	
	public Person05(String name, int age) {
		this.name = name;
		this.age = age;
		System.out.println("调用了父类的有参构造方法！");
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
}
